/**
 * Copyright 2025 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.root-container {
    display: flex;
    width: 100%;
    justify-content: center;

    .max-width-container {
        width: 100%;
        max-width: 1280px;
    }
}

.action-button-container {
    padding: 0;
}

.table-container {
    justify-content: center;
    display: block;
    flex-direction: row;
    padding: 0.5% 3%;
    padding-bottom: 5%;

    table {
        box-shadow: none;
        overflow: auto;
        height: 350px;
        overflow: auto;
        display: block;
    }

    .add-comment-button {
        color: #5C5F6180
    }

    .add-comment-button:hover {
        color: #4285F4;
    }

    .delete-action-button {
        color: #5C5F6180
    }

    .delete-action-button:hover {
        color: red;
    }

    th {
        font-family: 'Google Sans', sans-serif !important;
        font-style: normal;
        font-weight: 500;
        font-size: 15px;
        line-height: 23px;
        color: #161A1D;
        background-color: #F6F9FE !important;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    td {
        font-family: 'Google Sans', sans-serif !important;
        font-style: normal;
        font-weight: 400;
        font-size: 15px;
        line-height: 23px;
        color: #161A1D;
    }

    tr:nth-child(odd) {
        background-color: rgba(246, 249, 254, 0.1) !important;
    }

    tr:nth-child(even) {
        background-color: #F6F9FE !important;
    }

}

.amber {
    color: #fbc645;
}

.red {
    color: red;
}

.blue {
    color: #4285F4;
}

::ng-deep .mat-checkbox-checked .mat-checkbox-background,
.mat-checkbox-indeterminate .mat-checkbox-background {
    background-color: #4285F4 !important;
}

// overwrite the ripple overlay on hover and click
::ng-deep .mat-checkbox:not(.mat-checkbox-disabled) .mat-checkbox-ripple .mat-ripple-element {
    background-color: #4285F4 !important;
}

::ng-deep .mdc-checkbox__ripple {
    background-color: #4285F4 !important;
}

::ng-deep .mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background {
    background-color: #4285F4 !important;
    border-color: #4285F4 !important;
}

::ng-deep .mat-mdc-checkbox .mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background {
    background-color: #4285F4 !important;
    border-color: #4285F4 !important;

}

::ng-deep .mat-mdc-slide-toggle.mat-mdc-slide-toggle-checked:not(.mat-disabled) .mdc-switch__shadow {
    background-color: #4285F4;
    /*replace with your color*/
}

::ng-deep .mat-mdc-slide-toggle.mat-mdc-slide-toggle-checked:not(.mat-disabled) .mdc-switch__track::after {
    background-color: #4285F4 !important;
    /*replace with your color*/
}

.buttons-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    width: 100%;
    padding-top: 1%;
    padding-bottom: 1%;
}

.saved-intents-container {
    padding-top: 2%;
    padding-bottom: 2%;
}

.heading-container {
    width: 73%;
    align-content: center;
    flex-wrap: wrap;
    display: flex;
    flex-direction: row;

    span {
        font-family: 'Google Sans', sans-serif !important;
        font-style: normal;
        font-weight: 400;
        font-size: 20px;
        line-height: 14px;
        color: #161A1D;
    }
}

.button-child-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 24%;
    justify-content: center;

    button {
        border-radius: 30px;
        font-family: 'Google Sans', sans-serif !important;
        font-style: normal;
        font-weight: 500;
        font-size: 14px;
        line-height: 23px;
        letter-spacing: unset;
        box-shadow: none;
    }

    .bulk-delete-button {
        color: #f70808;
        border: 1px solid #f70808;
    }

    .create-notification-button {
        color: #fff;
        background: #4285F4;
    }
}

.form-field {
    width: 100%;
}

.dialog-toggle-button-container {
    font-family: 'Google Sans', sans-serif !important;
    font-style: normal;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding-bottom: 4%;

    button {
        height: 45px;
        border: none;
    }

    .error {
        background: #e9867e33;
        width: 28%;
    }

    .warning {
        background: rgb(241 226 183 / 44%);
        width: 28%;
    }

    .info {
        background: #F6F9FE;
        width: 35%;
    }

    .errorOutline {
        border: 1px solid red;
    }

    .warningOutline {
        border: 1px solid #fbc645;
    }

    .infoOutline {
        border: 1px solid #4285F4;
    }
}

.delete-confirmation-text {
    font-family: 'Google Sans', sans-serif !important;
    font-style: normal;
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: 20px;
    color: #161A1D;
}

.dialog-delete-button {
    border-radius: 30px;
    font-family: 'Google Sans', sans-serif !important;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 23px;
    letter-spacing: unset;
    box-shadow: none;
    color: #f70808;
    border: 1px solid #f70808;
}

.disableDiv {
    pointer-events: none;
}

.spinner-container {
    width: 100%;
    justify-content: center;
    display: flex;
    flex-direction: row;
    text-align: center;
    position: absolute;
    top: 50%;
}

.spinner-dialog-container {
    width: 100%;
    justify-content: flex-end;
    display: flex;
    flex-direction: row;
    padding-right: 5%;
    padding-bottom: 4%;
}

.text-column {
    width: 30% !important;
    word-break: break-word;
}

.comment-detail-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.details-container {
    font-weight: 600;
    border-radius: 5px;
    border: 1px solid #9e9e9e;
    text-align: start;
    padding: 3%;
    gap: 14px;
    display: flex;
    flex-direction: column;

    .question-details-container {
        background: white;
        font-weight: 400;
        border-radius: 12px;
    }
}

.chip-color {
    background: aliceblue !important;
    border: 1px solid #4285f4;
}

.action-column {
    width: 8%;
}

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(155, 155, 155, 0.5);
    border-radius: 20px;
    border: transparent;
}

.search-question-field {
    width: 100%;

    mat-icon {
        color: #363e45;
        cursor: pointer;
    }
}

::ng-deep .search-question-field .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

::ng-deep .search-question-field .mdc-text-field__input {
    height: 34px !important;
}

.input-field-container {
    display: flex;
    flex-direction: row;
    gap: 2%;
    align-items: center;
}

.submit-button {
    // width: 8% !important;
    background: #4285F4 !important;
    border: 1px solid #4285F4;
    box-sizing: border-box;
    // border: 1px solid #e0e0e0 !important;
    color: #fff !important;
    position: relative;
    user-select: none;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Google Sans', sans-serif !important;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    vertical-align: baseline;
    text-align: center;
    margin: 0;
    min-width: 64px;
    line-height: 36px;
    padding: 20px 46px;
    border-radius: 48px !important;
    overflow: visible;
    transform: translate3d(0, 0, 0);
    transition: background 400ms cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reset-button {
    background: white !important;
    box-sizing: border-box !important;
    border: 1px solid #4285F4 !important;
    color: #4285F4 !important;
    cursor: pointer;
    outline: none;
    font-family: 'Google Sans', sans-serif !important;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    min-width: 64px;
    line-height: 36px;
    padding: 0px 45px;
    height: 100%;
    border-radius: 48px !important;
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
}

.inactive-button {

    background: rgb(249 249 225) !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(255, 119, 7, 0.5019607843) !important;
    color: rgb(255 119 7 / 93%) !important;
    cursor: pointer;
    outline: none;
    font-family: "Google Sans", sans-serif !important;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    min-width: 64px;
    line-height: 36px;
    padding: 0px 45px;
    height: 60%;
    margin-left: 2rem;
    border-radius: 48px !important;
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
}

.active-button {

    background: rgb(226 249 225) !important;
    box-sizing: border-box !important;
    border: 1px solid rgb(59 153 29 / 84%) !important;
    color: rgb(17 193 56 / 93%) !important;
    cursor: pointer;
    outline: none;
    font-family: "Google Sans", sans-serif !important;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    min-width: 64px;
    line-height: 36px;
    padding: 0px 45px;
    height: 60%;
    margin-left: 2rem;
    border-radius: 48px !important;
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
}

.intent-field {
    width: 50%;

    .my-icon {
        margin-right: 0.5rem;
        color: #005cbb;
        border-radius: 2rem;
        padding: 1rem;
    }
}

.prompt-field {
    width: 100%;
    height: 150px;
}

.panel-heading-container {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #363e45;
    padding-top: 5px;
    padding-bottom: 5px;
}

.add-question-button {
    color: #4285F4 !important;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
}

.intent-heading-container {
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #363e45;
    padding-top: 2%;
    padding-bottom: 1%;
}

.internal-spinner-container {
    height: 31px
}

pre {
    width: 100%;
    color: white;
    padding: 2%;
    font-family: monospace;
    text-wrap: pretty;
    display: flex;
    flex-direction: row;
}


::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: #F5F5F5;
}

::-webkit-scrollbar {
    width: 12px;
    background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    background-color: #D62929;
}

.intent-chunk {
    display: flex;
    flex-direction: row;
    width: 90%;
}

.copy-button-container {
    width: 10%;
    display: flex;
    justify-content: flex-end;
}

.configure-title {
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    width: 50%;
}

.intent-buttons-container {
    display: flex;
    width: 45%;
    gap: 2%;
    justify-content: flex-end;
    padding-top: 1%;
    padding-bottom: 1%;
}

.checkbox-margin {
    padding-bottom: 1%;
}

::ng-deep .mat-horizontal-stepper-header{
  pointer-events: none !important;
}


.stepper {
    width: 100%;
}
